<template>
  <div>
    <FormItem :label="label" :prop="prop" :label-width="labelWidth" :rules="rules">
      <DatePicker
        style="width: 100%"
        type="datetimerange"
        :placeholder="placeholder ? placeholder : '请选择时间'"
        :size="size"
        :disabled="disabled"
        @on-change="d => $emit('input', d)"
      ></DatePicker>
    </FormItem>
  </div>
</template>

<script>
import commonItem from './commonItem'
export default {
  name: 'DateItem',
  mixins: [commonItem]
}
</script>
